package com.ruoyi.system.service.zhaungxiuservice.shopService;

import com.ruoyi.system.domain.zhuangxiumain.orderformMain.OrderVoucher;

import java.util.List;

public interface OrderVoucherService {

    /**
     * 查询线下支付订单凭证
     *
     * @param orderVoucherId 线下支付订单凭证ID
     * @return 线下支付订单凭证
     */
    public OrderVoucher selectOrderVoucherById(Long orderVoucherId);

    /**
     * 查询线下支付订单凭证列表
     *
     * @param orderVoucher 线下支付订单凭证
     * @return 线下支付订单凭证集合
     */
    public List<OrderVoucher> selectOrderVoucherList(OrderVoucher orderVoucher);

    /**
     * 新增线下支付订单凭证
     *
     * @param orderVoucher 线下支付订单凭证
     * @return 结果
     */
    public int insertOrderVoucher(OrderVoucher orderVoucher);

    /**
     * 修改线下支付订单凭证
     *
     * @param orderVoucher 线下支付订单凭证
     * @return 结果
     */
    public int updateOrderVoucher(OrderVoucher orderVoucher);

    /**
     * 批量删除线下支付订单凭证
     *
     * @param orderVoucherIds 需要删除的线下支付订单凭证ID
     * @return 结果
     */
    public int deleteOrderVoucherByIds(Long[] orderVoucherIds);

    /**
     * 删除线下支付订单凭证信息
     *
     * @param orderVoucherId 线下支付订单凭证ID
     * @return 结果
     */
    public int deleteOrderVoucherById(Long orderVoucherId);

    /**
     * 根据订单ID查询支付凭证
     * @param orderId
     * @return
     */
    public OrderVoucher selectOrderVoucherByOrderId(Long orderId);
}
